<%@ Import Namespace="Microsoft.Web.Mvc" %>
<%@ Import Namespace="FlickrPortfolio.Helpers" %>
<%@ Import Namespace="FlickrPortfolio.Models"%>

<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Tag>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
	<title><%= Model.ID %></title>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2><%= Model.ID %></h2>
    
    <% foreach (var photo in Model.Photos) { %>
        <a href="<%= Url.Action("Show", "Photo", new {id=photo.ID}) %>"><img src="<%= photo.Urls.Where(x => x.UrlType == UrlType.Small) %>" alt="<%= photo.Title %>" class="photo" /></a>
    <% } %>

</asp:Content>
